package org.example.demo.service.backend;

import org.example.demo.dto.ShipmentDTO;
import org.fisco.bcos.sdk.transaction.model.exception.ContractException;

public interface ShipmentBackendService {

    // 添加物流信息
    boolean addShipment(ShipmentDTO shipmentDTO);

    // 获取物流信息
    ShipmentDTO getShipment(int id) throws ContractException;

    // 更新物流状态
    boolean updateShipmentStatus(int id, String status);

    // 获取物流状态
    String getStatus(int id) throws ContractException;
}
